<%/**
			 * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
			 *
			 * This library is free software; you can redistribute it and/or modify it under
			 * the terms of the GNU Lesser General Public License as published by the Free
			 * Software Foundation; either version 2.1 of the License, or (at your option)
			 * any later version.
			 * 
			 * This library is distributed in the hope that it will be useful, but WITHOUT
			 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
			 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
			 * details.
			 */
%>
<%@ include file="/init.jsp" %>
<%@page import="base.MovieInfo" %>
<%@page import="util.SearchDatabase" %>
<%@page import="base.MovieDetails" %>
<%@page import="net.sf.json.util.*" %>
<%@page import="gui.UserInterface" %>

<portlet:actionURL var="searchAction" name="SearchAction">
	<portlet:param name="nextView" value="searchresultForm"></portlet:param>
</portlet:actionURL>

<portlet:actionURL var="insertAction" name="InsertAction">
	<portlet:param name="nextView" value="searchresultForm"></portlet:param>
</portlet:actionURL>

<c:if test="${! empty param.msg }">
    <p style="color:red">${param.msg}</p>
</c:if>
<aui:form method="post" action="${insertAction}">
	<table border="0" cellspacing="0" cellpadding="0" width="100%">
		<tr>
			<td style="padding: 4px 4px 4px 4px;">
				<aui:input label="Movie Title" name="movieTitle" type="text" readonly="true" maxlength="20"/>
			</td>
			<td style="padding: 4px 4px 4px 4px;">
				<aui:input label="Movie Genre" name="movieGenre" type="text" maxlength="20"/>
			</td>
			<td style="padding: 4px 4px 4px 4px;">
				<aui:input label="Movie Year" name="movieYear" type="text" maxlength="4"/>
			</td>
		</tr>
		<tr>
			<td style="padding: 4px 4px 4px 4px;">
				<aui:input label="Country" name="movieCountry" type="text" maxlength="50"/>
			</td>
			<td style="padding: 4px 4px 4px 4px;">
				<aui:input label="Languages" name="movieLanguages" type="text" maxlength="200"/>
			</td>
			<td style="padding: 4px 4px 4px 4px;">
				<aui:input label="Rating" name="movieRating" type="text" maxlength="4"/>
			</td>
		</tr>
		<tr>
			<td style="padding: 4px 4px 4px 4px;">
				<aui:input label="Number of votes" name="movieVotes" type="text" maxlength="20"/>
			</td>
			<td style="padding: 4px 4px 4px 4px;">
				<aui:input label="Direct link to IMDB" name="movieLink" type="text" maxlength="200"/>
			</td>
			<td style="padding: 4px 4px 4px 4px;">
			</td>
		</tr>
		<tr>
			<td style="padding: 4px 4px 4px 4px;"><aui:button type="Submit" value="Insert"></aui:button>
			</td>
			<td></td>
			<td></td>
			
		</tr>
	</table>
</aui:form>
<br></br>
<portlet:renderURL var="backAction" portletMode="view">
    <portlet:param name="nextView" value="" />
</portlet:renderURL>
<a href="<%=backAction%>"><b>Back to Main Page</b></a>